package com.ldxiwxr.common.constant;

import cn.hutool.extra.spring.SpringUtil;
import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * 通用常量
 * @author SuBanxia
 */

public class CommonConstant {
    /**
     * 通用成功标识
     */
    public static final int SUCCESS = 0;

    /**
     * 通用失败标识
     */
    public static final int FAIL = 1;

    /**
     * 默认成功消息
     */
    public static final String DEFAULT_SUCCESS_MESSAGE = "操作成功";

    /**
     * 默认失败消息
     */
    public static final String DEFAULT_FAILURE_MESSAGE = "操作失败";

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * IP地址查询API
     */
    public static final String IP_URL = "https://www.douyacun.com/api/openapi/geo/location?";

    /**
     * 未知IP地址
     */
    public static final String UNKNOWN_IP = "未知IP属地";

    /**
     * token API
     */
    public static final String TOKEN_API = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJBY2NvdW50SWQiOiIxNWM1MzU2NDNmYTIwYmFjOTMwZmM1NWQ4MmEyMGU2NiJ9.FP4Ye78lIUxQvv4em4lygfavTH1besnwJz2UiHjjDxM";

    /**
     * 内网
     */
    public static final String LOCAL_AREA_NETWORK = "内网IP";
}
